package net.zoneland.knowledge.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import net.zoneland.knowledge.model.ErrorCorrectionFile;

/**
 * 纠错附件.
 */
@Mapper
public interface ErrorCorrectionFileMapper {

    @Insert({
            "insert into AITK_ERROR_CORRECTION_FILE (ID, CORRECTION_ID, ",
            "FILE_NAME, ERROR_FILE )",
            "values (#{id,jdbcType=VARCHAR}, #{correctionId,jdbcType=VARCHAR}, ",
            "#{fileName,jdbcType=VARCHAR}, #{errorFile,jdbcType=BLOB})"
    })
    int insert(ErrorCorrectionFile errorCorrectionFile);
}
